package com.jackrain.nea.shiro.stateless;

import com.alibaba.fastjson.JSONObject;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * Created by Lucky dog on 2017/6/19.
 */
public class StatelessToken implements AuthenticationToken {
    private String accessKey;
    private String dateTime;
    private String sign;
    private JSONObject params;

    public StatelessToken(String accessKey,String dateTime,String sign,JSONObject params){
        this.accessKey = accessKey;
        this.dateTime = dateTime;
        this.sign = sign;
        this.params = params;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getDateTime() {
        return dateTime;
    }

    public void setDateTime(String dateTime) {
        this.dateTime = dateTime;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public JSONObject getParams() {
        return params;
    }

    public void setParams(JSONObject params) {
        this.params = params;
    }

    public String getPrincipal() {
        return accessKey;
    }
    public String getCredentials() {
        return sign;
    }

}